package question1.hashset;

import java.util.HashSet;

public class HashSetDemo {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        hs.add(new Student("yy",3,"男"));
        hs.add(new Student("yyds",1,"男"));
        hs.add(new Student("san",2,"女"));
        hs.forEach(student -> System.out.println(student));
    }
}
